 {% load staticfiles %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>物流监控</title>

    <!-- Bootstrap -->
    <link href="{% static '' %}default/css/bootstrap.min.css" rel="stylesheet">
      <link href="{% static '' %}default/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
      <link href="{% static '' %}default/css/style.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
{% include 'default/block_nav.html' %}


<div class="container theme-showcase" role="main">


      <div class="row">
        <div class="col-md-9">
            <div class="page-header">
        <h3>全部物流信息 </h3>
                <div>每页显示 ：
                     <select name="yujing" id="yujing">
                 <option value="20" selected>20条</option>
                 <option value="50">50条</option>
                 <option value="100">100条</option>
                 <option value="200">200条</option>
             </select>
             </div>
      </div>
            <table class="table">
            <thead>
              <tr>
                <th>物流单号</th>
                <th>物流渠道</th>
                <th>目的地</th>
                <th>发货日期</th>
                <th>最后更新日期</th>
                <th>运送时长</th>
                <th>总运输时间</th>
                <th>状态</th>
              </tr>
            </thead>
            <tbody>
            {% for l in wuliu %}
              <tr>
                <td><div id="TRNum-{{ l.id }}"></div><a href="javascript:void(0)" onClick="doTrack('{{ l.tracking_number }}','{{ l.id }}')">{{ l.tracking_number }}</a></td>
                <td>{{ l.channel }}</td>
                <td>{{ l.destination }}</td>
                <td>{{ l.send_time|date:'Y-m-d' }}</td>
                <td>{{ l.update_time|date:"Y-m-d" }}</td>
                <td>{{ l.num1 }}</td>
                <td>{{ l.num2 }}</td>
                <td>{{ l.status }}</td>
              </tr>
            {% endfor %}

            </tbody>
          </table>
        </div>
          <div class="col-md-3">
              <table class="table table-striped">
            <thead>
              <tr>
                <th>#</th>
                <th>状态码</th>
                <th>说明</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td> </td>
                <td>0</td>
                <td>未查询</td>
              </tr>
              <tr>
                <td></td>
                <td>1</td>
                <td>妥投</td>
              </tr>
              <tr>
                <td></td>
                <td>2</td>
                <td>已签收</td>
              </tr>
              <tr>
                <td></td>
                <td>3</td>
                <td>异常</td>
              </tr>
              <tr>
                <td></td>
                <td>4</td>
                <td>运输中</td>
              </tr>
              <tr>
                <td></td>
                <td>5</td>
                <td>查询不到</td>
              </tr>
              <tr>
                <td></td>
                <td>6</td>
                <td>跟踪结束</td>
              </tr>
              <tr>
                <td></td>
                <td>7</td>
                <td>运输过久</td>
              </tr>
              <tr>
                <td></td>
                <td>8</td>
                <td>投寄失败</td>
              </tr>
              <tr>
                <td></td>
                <td>9</td>
                <td>到达待取</td>
              </tr>
            </tbody>
          </table>
          </div>

    </div>
</div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="{% static '' %}default/js/bootstrap.min.js"></script>

  {% include 'default/tongji.html' %}


  <script type="text/javascript" src="//cdn.trackingmore.com/plugins/v1/plugins.min.js"></script>
<script type="text/javascript">
function doTrack(num,id) {
    TRACKINGMORE.trackMynumber({
            TR_ElementId:"TRNum-"+id,      //必须，指定悬浮位置的元素ID。
            TR_Width:800,        //可选，指定查询结果宽度，默认撑满容器。
            TR_Height:480,       //可选，指定查询结果高度，最大高度为800px，默认撑满容器。
            TR_ExpressCode:"0",       //可选，指定运输商，默认为自动识别。
            TR_Lang:"cn",        //可选，指定UI语言，默认根据浏览器自动识别。
            TR_Num:num       //必须，指定要查询的单号。
    });
}
</script>

  </body>
</html>